package cn.edu.hdu.relationSystem.relationOperation.command;

import cn.edu.hdu.relationSystem.relationOperation.receiver.CommandReceiver;

public class Operation1 extends OperateCommand {

    public Operation1(CommandReceiver commandReceiver) {
        super(commandReceiver);
    }

    public Operation1(CommandReceiver commandReceiver, String operate) {
        super(commandReceiver, operate);
    }


    @Override
    public void executeCommand() {
        commandReceiver.doing(operate);
    }

    @Override
    public void cancelCommand() {
        commandReceiver.notDoing(operate);
    }
}
